package com.apetrenko.avaya.callstore.server;

import java.io.IOException;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.apetrenko.avaya.callstore.client.AuthResult;
import com.apetrenko.avaya.callstore.client.LoginService;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

public class LoginServiceImpl extends RemoteServiceServlet implements
		LoginService {

	/**
* 
*/
	private static final long serialVersionUID = -5211473490124133013L;

	@Override
	protected void service(HttpServletRequest aArg0, HttpServletResponse aArg1)
			throws ServletException, IOException {

		@SuppressWarnings("unused")
		String sslID = null;
		sslID = (String) aArg0
				.getAttribute("javax.servlet.request.ssl_session");

		super.service(aArg0, aArg1);
	}

	@Override
	public AuthResult authenticate(String aLogin, String aPassword) {
		AuthResult vResult = new AuthResult();
		long vId = 0;
		vResult.iId = vId;
		vResult.iStatus = 1;
		return vResult;
	}

	@Override
	public void destroy() {
		super.destroy();
	}

	@Override
	public void init(ServletConfig aConfig) throws ServletException {
		super.init(aConfig);
	}

}